/**
 * Created by justao on 7/3/14.
 */

'use strict';

export const ExampleExitAction = () => ({
    isExitAction: true,
});
ExampleExitAction.match = (action) => (
    action && action.isExitAction === true
);

export const ExamplePageAction = (type) => ({
    type,
    isPageAction: true,
});
ExamplePageAction.match = (action) => (
    action && action.isPageAction === true
);

export const ExampleSettingsPageAction = (type) => ({
    ...ExamplePageAction(type),
    isSettingsPageAction: true,
});
ExampleSettingsPageAction.match = (action) => (
    action && action.isSettingsPageAction === true
);